package org.yzz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.yzz.auth.interceptors.AuthInterceptor;

@SpringBootApplication
@MapperScan("org.yzz.*.mapper")
//@ServletComponentScan("org.yzz.auth.listener")  // 扫描监听器
public class SystemApp implements WebMvcConfigurer {
    public static void main(String[] args) {
        SpringApplication.run(SystemApp.class,args);
    }

   /* @Autowired
    private AuthInterceptor authInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
            registry.addInterceptor(authInterceptor)
                    .addPathPatterns("/**")
                    .excludePathPatterns("/Login","/LoginOut");
    }*/
}
